


<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>

		<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
	</head>
	<body>
		<div id="app">
			{{msg}}
			<input  type="text" v-model="msg"/>
		</div>
		
		<script>
			var app = Vue.createApp({
				data() {
					return {
						"msg": "Hello Vue!"
					}
				},
				beforeCreate() {
					console.log("创建前")
				},
				created(){
					console.log("创建后")
				},
				beforeMount(){
					console.log("挂载前")
				},
				mounted(){
					console.log("挂载后")
				},
				beforeUnmount() {
					console.log("取消挂载前")
				},
				unmounted(){
					console.log("取消挂载后")
				},
				beforeUpdate() {
					console.log("更新前")
				},
				updated(){
					console.log("更新完")
				}
			});
			var vm = app.mount("#app")
		</script>



	</body>
</html>